package com.example.secondhandspringboot.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ContactVO {
    private Long contactUserId;
    private String contactUserName;
    private String userPic;
    //最近的一个消息
    private String newContent;
    //对当前联系人未读消息数量
    private int noticeNum;
    //是否在线
    private boolean isOnline;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime newMsgTime;
}
